﻿using System.Collections.Generic;
using System.Threading.Tasks;
using Jinjia.Approve.Entity.Entity;
using Jinjia.Approve.Model.VM;
using Jinjia.Core.BaseInfrastructure.StorageModel;

namespace Jinjia.Approve.IRepository
{
    public interface IErpaViewedLogRepository: IBaseRepository<erpa_viewed_log_tbl>
    {
        /// <summary>
        /// 根据业务模块ID和业务单据ID查询日志
        /// </summary>
        /// <param name="doc_model"></param>
        /// <param name="biz_order_id"></param>
        /// <returns></returns>
        Task<List<ErpaViewedLogViewModel>> GetViewLogByModularKeyAndBId(string doc_model, string biz_order_id);

        Task<erpa_viewed_log_tbl> GetViewLogByModularKeyAndBIdAndUserId(string doc_model, string biz_order_id, int user_id);

        Task<int> Save(erpa_viewed_log_tbl data);
    }
}